﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="GioHang.aspx.cs" Inherits="hoangnam12.GioHang" %>

<asp:Content ID="Content1" ContentPlaceHolderID="NamHolder" runat="server">
    <tr>
        <td>
            <asp:Label ID="lblthongbao" runat="server" Style="font-weight: 700; color: #FF0000"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Height="176px"
                DataKeyNames="idSP" ShowFooter="True" Width="767px" CellPadding="4" ForeColor="#333333"
                GridLines="None" OnRowDeleting="GridView1_RowDeleting" 
                OnRowUpdating="GridView1_RowUpdating" 
                >
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:TemplateField HeaderText="Tên S&#7843;n Ph&#7849;m">
                        <ItemTemplate>
                            <asp:Label ID="lblTenSP" runat="server" Text='<%# Bind("TenSP") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Giá Ti&#7873;n">
                        <ItemTemplate>
                            <asp:Label ID="lblGiaTien" runat="server" Text='<%# Bind("Gia") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="S&#7889; L&#432;&#7907;ng">
                        <FooterTemplate>
                            T&#7893;ng ti&#7873;n:
                        </FooterTemplate>
                        <ItemTemplate>
                            <asp:TextBox ID="txtSoLuong" runat="server" Height="26px" Text='<%# Bind("SoLuong") %>'
                                Width="84px"></asp:TextBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="T&#7893;ng Ti&#7873;n">
                        <FooterTemplate>
                            <asp:Label ID="lblThanhTien" runat="server">lblThanhTien</asp:Label>
                        </FooterTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblTongTien" runat="server" Text='<%# Bind("TongTien") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:ButtonField CommandName="Update" Text="S&#7917;a" />
                    <asp:ButtonField CommandName="Delete" Text="Xóa" />
                </Columns>
                <EditRowStyle BackColor="#7C6F57" />
                <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#E3EAEB" />
                <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F8FAFA" />
                <SortedAscendingHeaderStyle BackColor="#246B61" />
                <SortedDescendingCellStyle BackColor="#D4DFE1" />
                <SortedDescendingHeaderStyle BackColor="#15524A" />
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td>
            <p>
            </p>
        </td>
    </tr>
    <tr>
        <td>
            <p>
                <asp:Button ID="Button1" runat="server" Text="ThanhToan" Style="margin-left: 120px;
                    font-weight: 700; color: #0066FF;" OnClick="Button1_Click1" 
                    BorderColor="#0066FF" />
                <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="Mua Them" 
                    Style="font-weight: 700; color: #0066FF; margin-left: 31px;" 
                    BorderColor="#0066FF" />
                <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="Huy Gio Hang"
                    Style="font-weight: 700; color: #0066FF; margin-left: 29px;" 
                    BorderColor="#0066FF" />
            </p>
        </td>
    </tr>
</asp:Content>
